package com.coupon.service;

import com.coupon.pojo.*;


/**
 * @author 86152
 */
@SuppressWarnings("all")
public interface UserService {
    Boolean register(User user);
    User login(String phone);
    //查询全部用户列表的方法
    PageObject findAll(Integer page, String name);
    int getCount();
    int getCpn(UserGet userGet);
    PageObject selectAllUserGet(Integer page, String phone);

    int getUserGetCount();
    PageObject selectUsedList(String from,String  to);

    PageObject notGetCoupon(String phone,String date);
    PageObject hadGetCoupon(String phone,String date);
    PageObject outTimeCoupon(String phone,String date);

    int writeOff(Integer cpId,String phone);
    PageObject selectUserGet(String phone);
    PageObject overExpireCpn(String phone);

    PageObject selectExchangeList(Integer page,String from,String to);

    //


}
